Flush the addresses from the new eth0 before trying to add the new address to
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 8 Dec 2005 16:11:48 +0000 (16:11 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 8 Dec 2005 16:11:48 +0000 (16:11 +0000)
commit72bb6de0e016c567ff17504ac3ca792dc0792471
tree9cb60cc6ab89a218dd0fc3157e0daf4e403ec5f1
parent458dbeddf3a3ca20ebe5c1404b79dd6101c9a67d
Flush the addresses from the new eth0 before trying to add the new address to
it, when using ip on the kernel command line and not using the installed ifup /
ifdown.  This stops the script bailing out if there is already an address
attached to that device, which was leaving the device without routing (since
this has already been removed).

Fix the stop action under the same circumstances.  No attempt was made to
restore the kernel command line details to the interfaces if the ifdown failed
in that case.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/network-bridge